package com.wyd.rabbitmq.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: 雷哥
 * @Date: 2020/10/07/22:21
 * @Description:
 */
@Configuration
public class WorkConfig {
  /**
   * 创建一个队列
   */
  @Bean
  public Queue work(){
    Queue work = new Queue("work");
    return work;
  }
}
